import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/index',
      name:'index',
      component:()=>import('../components/Index1.vue')
    },
    {
      path:'/list',
      name:'list',
      component:()=>import('../components/List.vue')
    },
    {
      path:'/',
      redirect:'/index'
    },
    {
      path:'/:error(.*)',
      component:()=>import('../components/notFound.vue')
    }
  ]
})

export default router
